Skip to content

Conversation

elmo9999
Copy link
Contributor

@elmo9999 elmo9999 commented Oct 7, 2025

When using the eSPI peripheral channel for HOST_CMD, the STS0 bit indicates that EC is busy.
To reflect this properly,
STS0 should only be set when there is actual input data to process.

This avoids falsely signaling a busy state when there is no data.

promt0_reg->STS |= ACPI_STS_STS0;
}

evt.evt_data = (uint8_t)promt0_reg->IB;
Copy link
Contributor

@VenkatKotakonda VenkatKotakonda Oct 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this IB data invalid if IBF is not set?
in that case shouldn't this data copy code moved under above if condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks for reminding.

When using the eSPI peripheral channel for HOST_CMD,
the STS0 bit indicates that EC is busy.
To reflect this properly,
STS0 should only be set when there is actual input data to process.

This avoids falsely signaling a busy state when there is no data.

Signed-off-by: Elmo Lan <[email protected]>
@elmo9999 elmo9999 force-pushed the fix_unexpected_set_STS branch from dca6201 to 9e04f99 Compare October 9, 2025 11:28
Copy link

sonarqubecloud bot commented Oct 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants